﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020007E3 RID: 2019
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetRogueCommonDialogueDataScRsp : IMessage<GetRogueCommonDialogueDataScRsp>, IMessage, IEquatable<GetRogueCommonDialogueDataScRsp>, IDeepCloneable<GetRogueCommonDialogueDataScRsp>, IBufferMessage
	{
		// Token: 0x170019AD RID: 6573
		// (get) Token: 0x06005A97 RID: 23191 RVA: 0x000F370F File Offset: 0x000F190F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetRogueCommonDialogueDataScRsp> Parser
		{
			get
			{
				return GetRogueCommonDialogueDataScRsp._parser;
			}
		}

		// Token: 0x170019AE RID: 6574
		// (get) Token: 0x06005A98 RID: 23192 RVA: 0x000F3716 File Offset: 0x000F1916
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetRogueCommonDialogueDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170019AF RID: 6575
		// (get) Token: 0x06005A99 RID: 23193 RVA: 0x000F3728 File Offset: 0x000F1928
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetRogueCommonDialogueDataScRsp.Descriptor;
			}
		}

		// Token: 0x06005A9A RID: 23194 RVA: 0x000F372F File Offset: 0x000F192F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueCommonDialogueDataScRsp()
		{
		}

		// Token: 0x06005A9B RID: 23195 RVA: 0x000F3742 File Offset: 0x000F1942
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueCommonDialogueDataScRsp(GetRogueCommonDialogueDataScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.dialogueDataList_ = other.dialogueDataList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06005A9C RID: 23196 RVA: 0x000F3778 File Offset: 0x000F1978
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetRogueCommonDialogueDataScRsp Clone()
		{
			return new GetRogueCommonDialogueDataScRsp(this);
		}

		// Token: 0x170019B0 RID: 6576
		// (get) Token: 0x06005A9D RID: 23197 RVA: 0x000F3780 File Offset: 0x000F1980
		// (set) Token: 0x06005A9E RID: 23198 RVA: 0x000F3788 File Offset: 0x000F1988
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170019B1 RID: 6577
		// (get) Token: 0x06005A9F RID: 23199 RVA: 0x000F3791 File Offset: 0x000F1991
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<RogueCommonDialogueDataInfo> DialogueDataList
		{
			get
			{
				return this.dialogueDataList_;
			}
		}

		// Token: 0x06005AA0 RID: 23200 RVA: 0x000F3799 File Offset: 0x000F1999
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetRogueCommonDialogueDataScRsp);
		}

		// Token: 0x06005AA1 RID: 23201 RVA: 0x000F37A8 File Offset: 0x000F19A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetRogueCommonDialogueDataScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.dialogueDataList_.Equals(other.dialogueDataList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06005AA2 RID: 23202 RVA: 0x000F37F8 File Offset: 0x000F19F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.dialogueDataList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06005AA3 RID: 23203 RVA: 0x000F3845 File Offset: 0x000F1A45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06005AA4 RID: 23204 RVA: 0x000F384D File Offset: 0x000F1A4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06005AA5 RID: 23205 RVA: 0x000F3858 File Offset: 0x000F1A58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.dialogueDataList_.WriteTo(ref output, GetRogueCommonDialogueDataScRsp._repeated_dialogueDataList_codec);
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06005AA6 RID: 23206 RVA: 0x000F38A8 File Offset: 0x000F1AA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.dialogueDataList_.CalculateSize(GetRogueCommonDialogueDataScRsp._repeated_dialogueDataList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06005AA7 RID: 23207 RVA: 0x000F38FC File Offset: 0x000F1AFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetRogueCommonDialogueDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.dialogueDataList_.Add(other.dialogueDataList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06005AA8 RID: 23208 RVA: 0x000F3949 File Offset: 0x000F1B49
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06005AA9 RID: 23209 RVA: 0x000F3954 File Offset: 0x000F1B54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 82U)
				{
					if (num != 88U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					this.dialogueDataList_.AddEntriesFrom(ref input, GetRogueCommonDialogueDataScRsp._repeated_dialogueDataList_codec);
				}
			}
		}

		// Token: 0x0400232B RID: 9003
		private static readonly MessageParser<GetRogueCommonDialogueDataScRsp> _parser = new MessageParser<GetRogueCommonDialogueDataScRsp>(() => new GetRogueCommonDialogueDataScRsp());

		// Token: 0x0400232C RID: 9004
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400232D RID: 9005
		public const int RetcodeFieldNumber = 11;

		// Token: 0x0400232E RID: 9006
		private uint retcode_;

		// Token: 0x0400232F RID: 9007
		public const int DialogueDataListFieldNumber = 10;

		// Token: 0x04002330 RID: 9008
		private static readonly FieldCodec<RogueCommonDialogueDataInfo> _repeated_dialogueDataList_codec = FieldCodec.ForMessage<RogueCommonDialogueDataInfo>(82U, RogueCommonDialogueDataInfo.Parser);

		// Token: 0x04002331 RID: 9009
		private readonly RepeatedField<RogueCommonDialogueDataInfo> dialogueDataList_ = new RepeatedField<RogueCommonDialogueDataInfo>();
	}
}
